package com.tc.itfarm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SingleTableMapper<U, V> {
    int countByExample(V example);

    int deleteByExample(V example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(U record);

    int insertSelective(U record);

    List<U> selectByExample(V example);

    U selectByPrimaryKey(Integer recordId);

    int updateByExampleSelective(@Param("record") U record, @Param("example") V example);

    int updateByExample(@Param("record") U record, @Param("example") V example);

    int updateByPrimaryKeySelective(U record);

    int updateByPrimaryKey(U record);
}